package cn.tedu.hm.service.impl;

import cn.tedu.hm.wep.JsonPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.tedu.hm.pojo.Admin;
import cn.tedu.hm.service.AdminService;
import cn.tedu.hm.mapper.AdminMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【ams_admin(管理员)】的数据库操作Service实现
* @createDate 2023-04-11 16:12:37
*/
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin>
    implements AdminService{
    @Override
    public JsonPage<Admin> list(Integer page, Integer pageSize) {
        PageHelper.startPage(page,pageSize);
        List<Admin> list = super.list();
        return JsonPage.restPage(new PageInfo<>(list));
    }
}




